const vm = new Vue({
    el: '#main',
    data: {
        cancelCause: '',
    },
    methods: {
        selectCause,
    },
});

function apiready() {
    fxj.fixLayout();
}

function selectCause(type) {
    vm.cancelCause = type;
    reqCancleOrderDetail();
}

async function reqCancleOrderDetail() {
    const res = await ajax({
        url: 'home/order/getCancleOrderDetail',
        data: {
            orderId: fxj.getSearch().get('orderId'),
            type: vm.cancelCause,
        },
    });
    toast(res.msg);
}